From: Florian Müllner Date: Sun, 21 Aug 2022 16:24:06 +0000 (+0200) Subject: status/system: Use icon-name property X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~452^2^2~45 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e2cd66169bd865bb4f22a024c835a857d82e9cf6;p=gnome-shell.git status/system: Use icon-name property The quick settings code was first developed in an extension, which meant it made sense to maintain compatibility with GNOME 42 and not use the new :icon-name convenience property. There is no good for sticking with that for GNOME 43 as well. Part-of: --- diff --git a/js/ui/status/system.js b/js/ui/status/system.js index d4607d519..204a78ac3 100644 --- a/js/ui/status/system.js +++ b/js/ui/status/system.js @@ -134,9 +134,7 @@ class ShutdownItem extends QuickSettingsItem { style_class: 'icon-button', hasMenu: true, canFocus: true, - child: new St.Icon({ - icon_name: 'system-shutdown-symbolic', - }), + icon_name: 'system-shutdown-symbolic', accessible_name: _('Power Off Menu'), }); @@ -210,9 +208,7 @@ class LockItem extends QuickSettingsItem { super._init({ style_class: 'icon-button', can_focus: true, - child: new St.Icon({ - icon_name: 'system-lock-screen-symbolic', - }), + icon_name: 'system-lock-screen-symbolic', accessible_name: _('Lock Screen'), });